<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ page import="zozopo.operations.comm.*" %>
<%@ page import="java.text.*" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>

<!DOCTYPE HTML>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>添加产品  - 仓库管理</title>
    
    
   
	<link rel="stylesheet" href="<%=basePath %>/jquery/themes/base/jquery.ui.all.css">
  	<link rel="stylesheet" href="<%=basePath %>/jquery/demos.css">
  	<script src="<%=basePath %>/jquery/jquery-1.4.2.js"></script>
  	
  	<script src="<%=basePath %>/jquery/ui/jquery.ui.core.js"></script>
	<script src="<%=basePath %>/jquery/ui/jquery.ui.widget.js"></script>
	
 	
    <script>
   
    
	$(function() {
		$("#begindate").datepicker();
		$("#enddate").datepicker();
	});
	</script>
  </head>
  
	
	
  <style>
  
  
	<!--
	table {
	table-layout: fixed;
	word-wrap:break-word;
	}
	td{
		
		word-break:break-all;
	}
	
	BODY {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; FONT-FAMILY: arial,san serif
}
	//-->
</style>


  <body>
  
  <table width="100%"  border="0" cellpadding="0" cellspacing="0" height="100%">
  	<tr>
  		<td valign="top">
  			<jsp:include page="/background/operator/head.jsp"></jsp:include>
  		</td>
  	</tr>
  	<tr>
  		<td valign="top">
  			<table width="100%"  border="0" cellpadding="0" cellspacing="0">
  
 		<tr>
    	<td width="270" align="center">
    		
    	</td>
    	<td width="100%">
    		
    		
    		
    	</td>
    </tr>
    
    <tr>
    	<td valign="top">
     		<div>
     		
     		</div>
		  	<jsp:include page="/background/operator/left.jsp"></jsp:include>
				 
				 
				
     	</td>
     	
     	
     	<td valign="top" >
     <table border="0" cellpadding="0" cellspacing="0" >
    	 <tr>
     		<td>
     	
     	</td>
     		</tr>
 <tr>
     		<td>
<form action="warehouse/addgoods_warehouse.action" method="post" accept-charset="UTF-8" id="addgoods_warehouseForm" name="addgoods_warehouseForm"> 
				<s:token />
     <table border="0" cellpadding="0" cellspacing="0"  width="100%">
    	 <tr>
     		<td width="100%">
     	<table width="100%" border="0" cellpadding="0" bgcolor="#e5f3ff" cellspacing="0" style= "border:1px solid #ffffff; border-top-color:#6cb1f1;">
     		
     		<tr>
     			<td>添加产品
     			<input type="button" value="查看谁有权限" 
     				onclick="javascript:openUrlForDialog('selectoperatorlimitedAction_background.action?limitedCode=<s:property value="limitedcode"/>')"/>
     			</td>
     		</tr>
     	</table>
     	</td>
     		</tr>
 		<tr>
     		<td>
     			<FONT color="red"><s:property value="operationResult"/></FONT>
     			<s:fielderror id="errormessage" />
     			<br/>
     			
				<table border="0" cellpadding="0"  cellspacing="0" width="100%"  style= "border:1px solid #ffffff;" class="bottomline">
					<tr>
					
						<td width="130">仓库:</td>
						<td align="left">
							未加入
						</td>
						<td>
							
						</td>
					</tr>
					
					<tr>
					
						<td>导出产品数量(≥):</td>
						<td>
							<input type="text" id="number" value="0">
						</td>
						<td>
							
						</td>
					</tr>
					
					<tr>
					<%
					String temp_str="";
				    Date dt = new Date();
				    //最后的aa表示"上午”或"下午"    HH表示24小时制    如果换成hh表示12小时制
				    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
				    temp_str=sdf.format(dt);
				    
					
					%>
						<td>开始日期:</td>
						<td >
						
						<input type="text" id="begindate"> 
						
						
						</td>
						<td></td>
					</tr>
					
					
					<tr>
					
						<td>结束日期:</td>
						<td >
						
						
						<input type="text" id="enddate" value="<%=temp_str %>">
						
						</td>
						<td></td>
					</tr>
					
					

				</table>
			

	</td>
     		</tr>
     		 <tr>
     		<td>
     			<button type="button" onclick="exportGoodsInfo()">导出产品列表(Excel)</button>
		
     	</td>
     	</tr>
     	
     	
     	
     	</table>
     	</form>
	</td>
     		</tr>
     		 <tr>
     		<td>
     		
		
     	</td>
     	</tr>
     	
     	
     	
     	</table>
	</td>
</tr>

</table>
  		</td>
  	</tr>
  	<tr>
  		<td valign="bottom">
  			<jsp:include page="/background/operator/tail.jsp"></jsp:include>

  		</td>
  	</tr>
  
  </table>
  </body>
  
  <script type="text/javascript">
  function exportGoodsInfo(){
	  
	  window.location.href="exportgoodsinfo_warehouse.action?begindate="+$('#begindate').val()+"&enddate="+$('#enddate').val()+"&number="+$('#number').val();
	}
  
  </script>
  
</html>

